package com.itheima.ydd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.ydd.common.ResultData;
import com.itheima.ydd.entity.YddArticle;
import com.itheima.ydd.entity.YddUserData;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2022-05-22
 */
public interface IYddArticleService extends IService<YddArticle> {

    ResultData myArticle(Integer limit, Integer page,HttpServletRequest request);

    ResultData editArticle(YddArticle yddArticle);

    ResultData addArticle(YddArticle yddArticle, HttpServletRequest request);

    ResultData getByList(List<YddUserData> list, Integer page, Integer limit);

    Integer getarticle(Integer id);

    ResultData delArticle(String id);

    ResultData show(String id);

    ResultData findPage(String page, String limit);

    ResultData findArticleList(String page, String limit, String cateid);

    ResultData findHot();

    ResultData findRecommend();



}
